import request from "@/utils/request"

export const getGoodsList = (page,pageSize,title,categoryId3) => request.get(`/goods/list?page=${page}&pageSize=${pageSize}&title=${title}&categoryId3=${categoryId3}`)

// 新增
export const addGoods = (data) => request.post(`/goods/add`,data)
// 查询所有品牌
export const getBrandList = () => request.get(`/goods/brands`)

// 查询所有渠道商
export const getSupplierList = () => request.get(`/goods/suppliers`)

//修改
export const updateGoods = (data) => request.put(`/goods/update`,data)